package cn.lijiajia3515.cairo.system.modules.serial;

import cn.lijiajia3515.cairo.feign.configuration.ClientFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
	name = "${cairo.feign.service.cairo-system-service-v1:cairo-system-service-v1}",
	configuration = ClientFeignConfiguration.class,
	contextId = "systemSerialClient",
	primary = false
)
public interface SerialClient {
	String PREFIX = "/api/serial";

	@GetMapping(PREFIX + "/next/{id}")
	Long next(@PathVariable(name = "id") String id);
}
